package com.telnikoff.ts.core;

abstract public class Client 
{
	private static final class WorkspaceHolder
	{
		static Workspace ws;
		
		static Workspace getWorkspace(Client c)
		{
			if (null == ws)
				ws = new Workspace(c.getWorkspaceDir());
			return ws;
		}
	}
	
	protected Client()
	{
		//
	}
	
	protected abstract String getWorkspaceDir();
	
	public Workspace getWorkspace()
	{
		return WorkspaceHolder.getWorkspace(this);
	}
}